class Person:
    
    def __init__(self, name, age):
        self.name = name
        self.age = age
    
    def get_name(self):
        return self.name
    
    def set_name(self, name):
        self.name = name
    
# inspect.getmodulename(path)


if __name__ == "__main__":
    import inspect
    # print(inspect.getmembers(Person))

    person = Person("sunwukong", 18)
    print(inspect.getmembers(person, lambda _i: isinstance(_i, str)))
    print(inspect.getmodulename("F:\my_profile\study\code_pub\study_code_pub\python\模块\inspect\main.py"))